﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="pNegocioVerPlan.aspx.cs" Inherits="pNegocioVerPlan" %>
<%@ MasterType VirtualPath="~/Site.master" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxHiddenField" TagPrefix="dx1" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxUploadControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.2, Version=11.2.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx2" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <script type="text/javascript">
    // <![CDATA[
        function Uploader_OnUploadStart() {
            btnUpload.SetEnabled(false);
        }
        function Uploader_OnFileUploadComplete(args) {
            var imgSrc = aspxPreviewImgSrc;
            if (args.isValid) {
                var date = new Date();
                imgSrc = "ImagenesSubidas/" + args.callbackData + "?dx=" + date.getTime();
            }
            getPreviewImageElement().src = imgSrc;
        }
        function Uploader_OnFilesUploadComplete(args) {
            UpdateUploadButton();
        }
        function UpdateUploadButton() {
            btnUpload.SetEnabled(uploader.GetText(0) != "");
        }
        function getPreviewImageElement() {
            return document.getElementById("previewImage");
        }

        var postponedCallbackRequired = false;
        function OnListBoxIndexChanged(s, e) {
            var item = ListBox.GetSelectedItem();
            if (CallbackPanel.InCallback())
                postponedCallbackRequired = true;
            else
                CallbackPanel.PerformCallback();
        }

        function OnListTipoServicioChanged(s, e) {
            var item = ListBox.GetSelectedItem();
            if (CallbackPanel.InCallback())
                postponedCallbackRequired = true;
            else
                CallbackPanel.PerformCallback("CambiarPrecio");
        }

        function OnEndCallback(s, e) {
            if (postponedCallbackRequired) {
                CallbackPanel.PerformCallback();
                postponedCallbackRequired = false;
            }
        } 

    // ]]> 
    </script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div id="DivTop" style="float: right; vertical-align: top; height: 18px; width: 100%">
    </div>
    <div id="DivSeparador" style="float: right; vertical-align: top; height: 6px; width: 100%">
    </div>
    <div id="divNegocio" style="float: left; vertical-align: top; width: 90%">
        <dx:ASPxRoundPanel ID="rpPlan" runat="server" HeaderText="Plan de servicio actual"
            Width="450px" BackColor="White">
            <HeaderStyle BackColor="#FF9D3C" Font-Bold="False" Font-Names="Gill Sans MT" Font-Size="Medium"
                ForeColor="White">
                <BorderBottom BorderStyle="None" />
<BorderBottom BorderStyle="None"></BorderBottom>
            </HeaderStyle>
            <TopLeftCorner Height="4px" Url="~/Images/ASPxRoundPanel/641476402/TopLeftCorner.png"
                Width="4px">
            </TopLeftCorner>
            <NoHeaderTopLeftCorner Height="4px" Url="~/Images/ASPxRoundPanel/641476402/NoHeaderTopLeftCorner.png"
                Width="4px">
            </NoHeaderTopLeftCorner>
            <TopRightCorner Height="4px" Url="~/Images/ASPxRoundPanel/641476402/TopRightCorner.png"
                Width="4px">
            </TopRightCorner>
            <NoHeaderTopRightCorner Height="4px" Url="~/Images/ASPxRoundPanel/641476402/NoHeaderTopRightCorner.png"
                Width="4px">
            </NoHeaderTopRightCorner>
            <BottomRightCorner Height="4px" Url="~/Images/ASPxRoundPanel/641476402/BottomRightCorner.png"
                Width="4px">
            </BottomRightCorner>
            <BottomLeftCorner Height="4px" Url="~/Images/ASPxRoundPanel/641476402/BottomLeftCorner.png"
                Width="4px">
            </BottomLeftCorner>
            <PanelCollection>
                <dx:PanelContent runat="server" SupportsDisabledAttribute="True">
                    <table width="100%">
                        <tr>
                            <td align="left" width="70%" valign="top">
                                <dx:ASPxCallbackPanel runat="server" ID="ASPxCallbackPanel1" 
                                    ClientInstanceName="CallbackPanel">
                                    <ClientSideEvents EndCallback="OnEndCallback"></ClientSideEvents>
                                    <PanelCollection>
                                        <dx:PanelContent ID="PanelContent3" runat="server">
                                            <table width="100%">
                                                <tr>
                                                    <td>
                                                        &nbsp;</td>
                                                    <td align="right">
                                                        <dx:ASPxLabel ID="lblSelectImage2" runat="server" 
                                                            AssociatedControlID="uplImage" Font-Bold="True" Height="16px" Text="Negocio">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                    <td>
                                                        &nbsp;</td>
                                                    <td>
                                                        <dx:ASPxLabel ID="lblNegocioNombre" runat="server" Text="NombrePlan" 
                                                            Width="250px">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        &nbsp;</td>
                                                    <td align="right">
                                                        &nbsp;</td>
                                                    <td>
                                                        &nbsp;</td>
                                                    <td>
                                                        &nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                    <td align="right">
                                                        <dx:ASPxLabel ID="lblSelectImage0" runat="server" 
                                                            AssociatedControlID="uplImage" Font-Bold="True" Height="16px" Text="Plan:">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                    <td>
                                                        <dx:ASPxLabel ID="lblNombrePlan" runat="server" Text="NombrePlan" Width="250px">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                    <td align="right" valign="top">
                                                        <dx:ASPxLabel ID="lblSelectImage1" runat="server" AssociatedControlID="uplImage"
                                                            Height="16px" Text="Descripción:" Font-Bold="True">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                    <td>
                                                        <dx:ASPxLabel ID="lblDescripcion" runat="server" Text="Descripcion" 
                                                            Width="100%">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        &nbsp;</td>
                                                    <td align="right" valign="top">
                                                        &nbsp;</td>
                                                    <td>
                                                        &nbsp;</td>
                                                    <td>
                                                        &nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        &nbsp;</td>
                                                    <td align="right" valign="top">
                                                        <dx:ASPxLabel ID="ASPxLabel29" runat="server" AssociatedControlID="uplImage" 
                                                            Font-Bold="True" Height="16px" Text="Inicio Plan:">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                    <td>
                                                        &nbsp;</td>
                                                    <td>
                                                        <dx:ASPxLabel ID="lblInicio" runat="server" Text="Descripcion" Width="100%">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        &nbsp;</td>
                                                    <td align="right" valign="top">
                                                        <dx:ASPxLabel ID="ASPxLabel30" runat="server" AssociatedControlID="uplImage" 
                                                            Font-Bold="True" Height="16px" Text="Fin plan:">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                    <td>
                                                        &nbsp;</td>
                                                    <td>
                                                        <dx:ASPxLabel ID="lblFin" runat="server" Text="Descripcion" Width="100%">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        &nbsp;</td>
                                                    <td align="right" valign="top">
                                                        &nbsp;</td>
                                                    <td>
                                                        &nbsp;</td>
                                                    <td>
                                                        &nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        &nbsp;</td>
                                                    <td align="right">
                                                        <dx:ASPxLabel ID="ASPxLabel4" runat="server" AssociatedControlID="uplImage" 
                                                            Font-Bold="True" Height="16px" Text="Precio Final:">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                    <td>
                                                        &nbsp;</td>
                                                    <td>
                                                        <dx:ASPxLabel ID="lblPrecioFinal0" runat="server" Font-Bold="True" 
                                                            Font-Size="Small" Text="Precio" Width="100%">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        &nbsp;</td>
                                                    <td align="right">
                                                        &nbsp;</td>
                                                    <td>
                                                        &nbsp;</td>
                                                    <td>
                                                        <dx:ASPxLabel ID="lblPrecioFinalOK" runat="server" Font-Bold="True" 
                                                            Font-Size="Small" Text="Precio" Visible="False" Width="50%">
                                                        </dx:ASPxLabel>
                                                        <dx:ASPxLabel ID="lblTiempoHasta" runat="server" Font-Bold="True" 
                                                            Font-Size="Small" Text="Precio" Visible="False" Width="50%">
                                                        </dx:ASPxLabel>
                                                    </td>
                                                </tr>
                                            </table>
                                        </dx:PanelContent>
                                    </PanelCollection>
                                </dx:ASPxCallbackPanel>
                            </td>
                        </tr>
                    </table>
                    <table width="100%">
                        <tr>
                            <td align="center">
                                <dx:ASPxLabel ID="lblError" runat="server" Font-Bold="True" ForeColor="Red" Text="ERROR"
                                    Visible="False">
                                </dx:ASPxLabel>
                            </td>
                            
                        </tr>
                        <tr>
                            <td align="center">
                               <table align="center">
                                         <tr align="center">
                                             <td>
                                                 &nbsp;</td>
                                             <td>
                                             </td>
                                             <td align="left">
                                                 &nbsp;</td>
                                             <td align="left">
                                                 <dx:ASPxButton ID="btnSiguiente" runat="server" OnClick="btnSiguiente_Click1" TabIndex="15" 
                                                     ToolTip="Regresar" Width="75px" 
                                                     CssFilePath="~/App_Themes/Office2003Olive/{0}/styles.css" 
                                                     CssPostfix="Office2003Olive" 
                                                     SpriteCssFilePath="~/App_Themes/Office2003Olive/{0}/sprite.css" 
                                                     Text="Regresar">
                                                     <Image Url="~/Images/Iconos/check.png" Width="50px">
                                                         <SpriteProperties Left="0px" />
<SpriteProperties Left="0px"></SpriteProperties>
                                                     </Image>
                                                 </dx:ASPxButton>
                                             </td>
                                             <td>
                                             </td>
                                             <td>
                                                 &nbsp;</td>
                                         </tr>
                                     </table></td>
                        </tr>
                    </table>
                </dx:PanelContent>
            </PanelCollection>
            <Border BorderColor="#8B8B8B" BorderStyle="Solid" BorderWidth="2px" />

<Border BorderColor="#8B8B8B" BorderStyle="Solid" BorderWidth="2px"></Border>
        </dx:ASPxRoundPanel>
    </div>
    <div id="Div1" style="float: right; vertical-align: top; height: 6px; width: 100%">
    </div>
    <script type="text/javascript">
    // <![CDATA[
        var aspxPreviewImgSrc = getPreviewImageElement().src;
    // ]]> 
    </script>
</asp:Content>
